#include <stdio.h>

struct People         //  int
{
	char name[18];   // 18 + 2 
	int	 age;        // 4
	char sex;        // 1 + 3 
	float shouru;    // 4
	char* addr;	     //	4
};

void printint(int* x)
{	
	printf("*p == %d\n",*x);
}

void printstruct(struct People* pstux)
{
	printf("%-10s",pstux->name);
	printf("%-4d",pstux->age);
	printf("%-4c",pstux->sex);
	printf("%-10.2f",pstux->shouru);
	printf("%-20s\n",pstux->addr);		
}

void dayin(int x)
{
	printf("a == %d\n",x);
}
int main()
{
	int i = 0;
	
	int a = 6;
//	int* p = NULL;
//	p = &a;
//	printint(p);
	printint(&a);
	
	
	
	struct People  stu1 = {"zhangsan",18,'W',8888.88,"shenzhen"};	
//	struct People* pstu = NULL;
//	pstu = &stu1;
//	printstruct(pstu);	
	printstruct(&stu1);	
	
	dayin(stu1.age);

	
	

	


	
	return 0;
}


